//
//  Test.m
//  PhongThuyLibrary
//
//  Created by Le Anh Tai on 11/9/13.
//  Copyright (c) 2013 Phuong Le. All rights reserved.
//

#import "Test.h"
#import "PhiCung.h"
#import "BatTrach.h"
#import "FengShuiCore.h"
#import "FengshuiDefines.h"

@implementation Test

+ (void)test
{
//    [self batTrachThuocViAmDuong];
//    [self maxtrixHungKiet];
    [self cuuTinh];
}

+ (void)cuuTinh
{
    NSLog(@"-----------Cuu Tinh - Ngu hanh---");
    BatTrach *batquai = [[BatTrach alloc] init];
    for (NSString *trach in BAT_CUNG)
    {
        batquai.trach = trach;
        NSLog(@"%@ thuoc %@ - %@ - %@",trach, [batquai getThuocCuuTinh],[batquai getThuocAmDuong],[batquai getThuocHanh]);
    }
}

+ (void)batTrachThuocViAmDuong
{
    NSLog(@"-----------Bat trach thuoc vi am/duong");
    PhiCung *phiCung = [[PhiCung alloc] init];
    for (NSString *string in BAT_CUNG)
    {
        phiCung.cung = string;
        NSLog(@"%@ thuoc vi %@",string,[phiCung getThuocAmDuong]);
    }
}

+ (void)maxtrixHungKiet
{
    NSLog(@"-----------Bat trach hung kiet");
    PhiCung *phiCung = [[PhiCung alloc] init];
    for (NSString *trach1 in BAT_CUNG)
    {
        for (NSString *trach2 in BAT_CUNG)
        {
            phiCung.cung = trach1;
            
            NSLog(@"%@ - %@ = %@",trach1, trach2,[phiCung getKietHungWithCung:trach2]);
        }        
    }
}

@end
